package com.example.health_life.service;

import com.example.health_life.dao.Article;

import java.util.List;

public interface ArticleService {

    List<Article> getArticleList();

    List<Article> getArticleListByType(Byte type);

    Article getArticleById(Integer id);

    List<Article> getArticleListWithAuthor();

    List<Article> getArticleListWithAuthor(Integer status);

    Article getArticleByIdWithAuthor(Integer id);

    List<Article> getArticleListByTypeWithAuthor(Byte type);

    List<Article> getArticleListByTypeWithAuthor(Byte type, Integer status);

    int addArticle(Article article);

    int deleteArticle(Integer id);

    int updateArticle(Integer id, String title, String content, Integer type, String coverImg,
                      Integer view,Integer  favorite, Integer status);
}
